d2: ifdefs for ramconsole

build will fail with ANDROID_RAM_CONSOLE disabled

Change-Id: Ie2b3585a0a9f402107c1316db570007cb969a02c