remove write lock