We have seen that key generation of RSA keys sometimes hangs on Windows because the key creation process does not get the lock for pubring.kbx.
Cause seems to be that the lock is (for a yet unknown reason) not released by one of the two key listing processes which are triggered by the creation of the secret key file.
To work around this we want to suspend the file watcher which triggers the key listing until the key creation process is completely finished.