Making sure, that hpx::finalize can be called from any locality and that only the first invocation triggers the termination.
Merge pull request #1134 from STEllAR-GROUP/fixing_shutdown_all

Making sure, that hpx::finalize can be called from any locality