fix rare race cond. in unlock!