pub fn emit_bash_lock(lock_file: &str, lock_fd_var: &str) -> String
Emits bash code to acquire an exclusive lock file.