drop locks if a thread crashes