Integrate with the new rspec-mocks lifecycle

This wants to be merged after https://github.com/rspec/rspec-mocks/pull/449 but makes -core work with the changes in -mocks for that pull request.