Unlock mutex on fork, before clearing data.