Move Clang's file-level locking facility over to LLVM's support