“A waqif can dedicate property only after ensuring that female heirs receive their rightful share (Section 3A(2),” it said