Introduced 'isAllowedToRunOnCallingThread(op)' method to in spi OperationService.
Fixed a NPE appearing when node is terminated during startup.
Merge pull request #4049 from mdogan/3.4/isAllowedToRunOnCallingThread

Introduced 'isAllowedToRunOnCallingThread()' method to OperationService