We need to unlock it before deleting 'pinger' later.  Mutex::Locker will only release the lock when we get out of the scope of the current function.