clear need_locks in child after fork