fix crash when two clients send queries to admin port simultaneously: only main-thread handles the admin queries