[Lockfile] Fix crash when installing with subspecs
Merge pull request #168 from CocoaPods/bugfix/subspec-locking

[Lockfile] Fix crash when installing with subspecs