Lock/Unlock multiple locks at once function / class