fetch.c: do not pass uninitialized lock to unlock_ref().