hardware: Add an ifdef to disable id match check

When wrapping HAL modules (for example camera wrapping vendor-camera), this
match check prevents vendor-camera to be loaded because its original name
is camera and not vendor-camera.

Change-Id: If79a941b54d83610638041440db907ae593b2e91
libhardware: QCOMs revenge

Based on CAF kk_2.7_rb1.9

Change-Id: Ide64ea08b22cb147b9eee7afab438ea12ff59904