jbd2: cleanup write flags handling from jbd2_write_superblock()