cluster: Allow reentrant calls to methods during shutdown Upstream-commit: 01c80435c6cef5730e51fa848b5771232b40e143 Component: engine