Unlock Registry mutex even in case of panic.