gpio: make mraa_gpio_isr_exit block until the interrupt handling thread is terminated.

Signed-off-by: Bernd Barsuhn <bernd.barsuhn@me.com>