Switching to read write lock