pothos: fix syslog listener close lockup

* cant close it in the static-deinit context
* added api call to close if from gui main context