fixed missing UnLock on server side in BATCH mode