#177 improve osek to avoid isr2 error while task use resource