fix some network and file locking sync problems