[minor] fix file lock booboo
Merge pull request #326 from webnotes/scheduler-lock

[minor] fix file lock booboo