Solve deadlock due to write-lock releasing with read-unlock.