fixed deadlock in error path by moving unlock_hypervisor_conn