Issues and dangers with locks