[Resolver] Allow pre-release spec versions when a requirement has an external source

Closes https://github.com/CocoaPods/CocoaPods/issues/2768.
[LockingDependencyAnalyzer] Ensure vertex exists before detaching it

Closes https://github.com/CocoaPods/CocoaPods/issues/2779.
[Bundle] update.