Fixed an issue where the last available fd in the fd table was assigned an open file identifier. Also added a lock and made some variables to begin the work on synchronizing file system calls. Still need to force mutual exclusion though.