KAZOO-3129: Fix race condition for is_authentic map function