NEXUS-6182: Sync access to SecDispatcher.

As it's not thread safe.