have out own lock foe dzsave

we were calling quite a few funcs from inside the global lock, some of
which used the global lock themselves

have our own file operation lock, it's neater
sync