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 periodically.

Fixes #40

Signed-off-by: Jim Huang <jserv@0xlab.org>