check use of locking in template Canaima