Use appropriate locks