StoreDirect & WAL: fix wrong assertions