Fix BC irq handling (a bit)

You have to clear the gpio irq first, otherwise you open a race window
where you already cleared the BC_INTFLAG and a new irq happens before you
are able to clear the gpio irq.