Cosmetics: Reset locks and unlocks arrays before loop