For absolute paths, the file descriptor should be ignored. In such a case there is also no need to hold the lock or change the working directory.
Also fix the bug in emulateFchmodat that was found by the tests.