Avoid a lockup when adding an entry to the catalog. Fixes #1388

Use `runOnMainQueueSync` instead of blindly trying to run the block on the main thread

The lock would only occur if you have 'run tasks and actions in the background' disabled in the extras prefs.

Delete this branch when it's merged, I might be on a plane somewhere :D