alloc: Add easy memory checker.

The checker is enabled only when LSMASH_ALLOC_DEBUG is defined.