fix where-query
maintain a list of locked models on the client as well
add initialize()-lockcheck to the base model and to the base view