fix deadlock happens in lifecyclelistener and add note about blocking ca...

...lls. Fixes #2401
Since you're using `TestHazelcastInstanceFactory`, you should use `factory.shutdownAll()`. Otherwise all Hazelcast resources (threads in this case) will remain open.