Adding locking when fiddling with config znodes