[lib][ext4] move "struct ext4_mountpoint" into ext4_types.h
uboot_api: check permissions of grub files before booting it

also fix some stupid mistakes like wrong return values etc