[CIFS] some cleanup to dir.c prior to addition of posix_open