Use bmap lock when clearing write_bmap