added lock file for scheduler to prevent multi scheduler instance.