Use BOARD_DISABLE_HW_ID_MATCH_CHECK := true instead of global c flag

Currently devices use COMMON_GLOBAL_CFLAGS which passes to every
make file during the build. This flag is only needed for building
libhardware.

Change-Id: I0208558246bca972a335d981d0567f991a543070