[Specification] Properly set the parent of subspecs

Closes CocoaPods/CocoaPods#1057