lock form if already synchronised