Close IRQ in context switch to avoid abnormal sampling result

This abnormal sampling results from context switch processing in PendSV being
preempted by ktimer IRQ which triggers sampling event.

Fixes #40