Release lock before fork.