Make mraa_gpio_isr_exit block until the interrupt handling thread is terminated.