refs.c: remove lock_fd from struct ref_lock