s3: Add onefs_open.c with code copied verbatim from smbd/open.c