fsync() parent directory whenever we create a new file.
Small fixes, added EINTR loops around an mkdir and around fsync.