On martingale transform inequalities in certain quasi-Banach function spaces