clarify lock behaviour for non-existent keys

closes #1200