fixed locking for Autosar OS