Fix race condition tests.

- on affected tests: add an extra pair of rules to workaround a deadlock scenario caused by the race condition tests themselves
[MSC-125] Include cyclic information in CircularDependencyException message
[MSC-126] provided test to reproduce the NPE issue
[MSC-126] fixing issue - it is possible that dependent can be null on MSC shutdown