removing synchronization in releaseWriteLockForApplication and acquireWriteLockForApplication