References #2365: Fixed multiple sources of deadlocks in CyApplicationManagerImpl.