Fixing bug in lock file creation (needed to create file & be a future).

R=tapted@chromium.org

Review URL: https://codereview.appspot.com/49540044