Switch define from HAS_DLFCN to IS_BAREMETAL.

Change-Id: I5d0b6f4be3a3a573787f08198b839f028496e991