Ensure cluster is not accessed when shutting down or closed.

Trying to access the cluster when it has been shut down can result
in GeoServer not being able to properly shutdown itself.
The hz map used as jdbcconfig cache was just doing so. Now it checks
if the cluster is in "running" state.