std.mmfile: Improve error handling

Use wenforce instead of (inappropriately) errno.
Switch from if blocks to scope blocks.