Introduced 'isAllowedToRunOnCallingThread()' method to OperationService

This is required for an optimization in Hi-density memory cache impl.