fn lock_origins( origins: &Mutex<HashMap<Option<IpAddr>, Arc<Semaphore>>>, ) -> MutexGuard<'_, HashMap<Option<IpAddr>, Arc<Semaphore>>>