One of Malaysia's top judges said a lack of female appointments to Islamic courts was leading to prejudicial treatment of women in cases.