Typo.
Writer should acquire an exclusive lock, not a shared lock, close #184.