EN50494: merge mutex_unlocks after for-loop