mount_image.c: Use well-defined check in flags_writable()