Let mock source be chosen by Python major version.

This should provide better Python 3 compatibility, since mock is in the
Python 3 standard library as unittest.mock.