Releasing lock while waiting for inst to shut down

To avoid timeouts on requests to NC while an instance is
shutting down (within the grace period), releasing hypervisor
lock while sleeping. Also made NC_SHUTDOWN_GRACE_PERIOD_SEC
configurable via eucalyptus.conf

Relates to EUCA-6124