Reduce the amount of boilerplate in fuse2fs by creating helper functions
to start and finish a file operation instead of open-coding the logic
all over the place. This also fixes a couple of theoretical races.
Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>