[PATCH] bootcounter: add DM support for memory based bootcounter