Remove useless `private` declaration in Mocks::TestDouble

The class had 2 `private` declarations.
Fix errors caused by `double.as_null_object.freeze`
Deprecate freezing a test double
Merge pull request #708 from rspec/fix-double-as_null_object-freeze

Fix errors caused by `double.as_null_object.freeze` on 2.99