Fix lock_fd... How did I manage to break that?