mmf: Write metadata into an Optional Data chunk

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>