[PATCH 5.4.y] jbd2: ensure that all ongoing I/O complete before freeing blocks