Fix missing check for dev->up before calling init_adapter

With some kernels and the right timing it is possible to get into the
state where we get the local name but haven't yet gotten a DEVUP event.
In such a case it is *not* ok to call init_adapter.
diff --git a/plugins/hciops.c b/plugins/hciops.c
index c46465a..4225cd8 100644
--- a/plugins/hciops.c
+++ b/plugins/hciops.c
@@ -1584,7 +1584,7 @@
 		hci_send_cmd(dev->sk, OGF_INFO_PARAM,
 					OCF_READ_LOCAL_VERSION, 0, NULL);
 
-	if (!dev->pending)
+	if (!dev->pending && dev->up)
 		init_adapter(index);
 }