Ensure that calls to refreshFileTree are not interleaved.
Tagalong commit: upgrade the blind write warning to an error for easier debugging.
Merge pull request #6434 from adobe/iwehrman/issue-6413

Synchronize and throttle ProjectManager.refreshFileTree