Mutexes for reindexPublicDir and loadExistingDomains in public_watcher.
Move mutexes to corresponding headers.