Main thread
The subsystem asks the application for the thread it runs on, with
pbl_pp_main_call() and pbl_pp_main_is_current() (pbl/pp/main.h). The
sample gives it a work queue of its own. It cannot be the system work queue:
the handlers of the endpoints run there, and may wait for the transport to
make room while they send.
What NimBLE reports on its host thread, the link being secured or gone, is passed on to that thread, where the transport is started and stopped.