modetest: introduce and use get_crtc_by_id() and get_crtc_mask()