[Lockfile] Make path if needed before writing.
[Lockfile] Make path if needed before writing.

Should fix Travis errors.

gabro/Core,CocoaPods/Core,dnkoutso/Core,dacaiguoguogmail/Core,brianmichel/Core,k0nserv/Core,Ashton-W/Core,orta/Core,AdamCampbell/Core