gui: Only call libpd_hide_gui when closing the "main patch", i.e. the first opened patch.
gui: Send "libpd gui_is_visible" and "libpd gui_is_hidden" signals for clients to know when gui is visible/hidden