Hi Wolfgang,
The issue came back again today, opening the Catalog folder started hanging again. So I tried the SQL statements you provided.
Once I added in the wait part as you suggested, this seemed to fix the issue. The final SELECT quickly returned all public schemas, and the Catalog folder now opens quickly.
Thanks for providing the workaround.
Kevin.