solr: cores?action=UNLOAD can unregister unclosed core

Changing CoreContainer.unload to wait for core to close before unregistering it from ZK. Adding testMidUseUnload method to TestLazyCores.