[Lockfile] Return multiple dependencies to lock a Pod

See https://github.com/CocoaPods/CocoaPods/pull/2297