adapter: Fix crash when discovering

If client exits while start discovery command is pending it may produce
the following crash:

Invalid read of size 8
   at 0x49036E: start_discovery_complete (adapter.c:1428)
   by 0x4D4957: request_complete (mgmt.c:261)
   by 0x4D5BD4: can_read_data (mgmt.c:353)
   by 0x4E717A: watch_callback (io-glib.c:170)
   by 0x50CEB76: g_main_context_dispatch (in /usr/lib64/libglib-2.0.so.0.5400.3)
   by 0x50CEF1F: ??? (in /usr/lib64/libglib-2.0.so.0.5400.3)
   by 0x50CF231: g_main_loop_run (in /usr/lib64/libglib-2.0.so.0.5400.3)
   by 0x40CEC0: main (main.c:770)
 Address 0x0 is not stack'd, malloc'd or (recently) free'd
1 file changed