Fix probable thread safety issue

Seeing corrupted dictionaries for service documents, this should deal with any thread safety issues on that static dict