bufmgr: unlock the thread when the path is null