Modelling the mid-infrared polarization in dust around young stars