Acquire write lock just in case on transitions