egl/loader: move crtc resource infrastructure as common helper
Patch moves (and renames) the infrastructure to fix compilation failures when dri3 is not enabled in the build.
Fixes: 3170b633 ("loader: Add infrastructure for tracking active CRTC resources"); Closes: #8476 (closed) Signed-off-by: Tapani Pälli tapani.palli@intel.com