fix last_kmsg for ram_console

Change-Id: I8a50ba06cea7ff18ad7bca75cdb0dda69080b9d8