ext4: Replace open coded mdata csum feature to helper function