zonewise locking. simulation: initial code