fixed locking pattern for Autosar OS