Add a method to the fake MatrixClient used in tests for compatibility with changes in matrix-org/matrix-js-sdk#3092. This stops the downstream tests from failing on that PR.