This avoids unnecessary syscalls in memory protected builds, when mutex lock/unlock can be done with only atomic counter access Signed-off-by: Jukka Laitinen <jukka.laitinen@tii.ae>