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

...lls. Fixes #2401