Support use of O_TRUNC with nfs_create

(plus a couple of small misc commits)