base: rename messages macro to flashed_messages

* In order to avoid conflict with the messages module.

Signed-off-by: Adrian-Tudor Panescu <adrian.tudor.panescu@cern.ch>