make mutex_unlock isr aware

mutex_unlock can be called from an isr context in which case it must not enable interrupts.