The current directory "." is relative to the directory switched to by calling ``fchdir``, so it needs to be inside the lock.