Move all project management to main thread. Most of it was there
already. This could help us avoid the locks altogether and thus fix
CursorInfo's nasty APIs.