std.mmfile: Improve error handling

Use wenforce instead of (inappropriately) errno.
Switch from if blocks to scope blocks.

Needs ~~https://github.com/D-Programming-Language/phobos/pull/2505~~
That looks like a bug, I guess no one noticed it yet.