jbd: fix race in buffer processing in commit code