main/wal: add a const for 0700 magic number