jbd: fix race between free buffer and commit transaction