kill-the-bkl/reiserfs: factorize the locking in reiserfs_write_end()