Implementation for open/close with FUSE flags