Fix the linking error when CONFIG_CMAKE_LINKER_GENERATOR=y when applying the new ztest API. Signed-off-by: Enjia Mai <enjia.mai@intel.com>