95a195791a
Attempt to fix all the code paths so that the 'fp' returned by fd_getfile() isn't left locked, and is always unlocked (and ref-counted) before doing anything that might sleep.