Remove gmock.

Gmock and GTest should not be installed system-wide.

Closes #17358.