[CORE] Ensure that irqs are not disabled when acquiring sleepable lock

This improves sanity checks of APIs acquiring sleepable lock so that
we don't accidentally acquire sleepable lock with irqs disabled.

Signed-off-by: Anup Patel <anup@brainfault.org>