Imitate access on kmalloc/kfree && ignore events from scheduler && check mutex is locked and unlocked in the same thread

If KT_GRAIN is 8, then you want "addr & (KT_GRAIN-1)"