Import matplotlib in conftest to force backend before anything else.