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