Where property is transferred subject to a condition or limitation absolutely restraining the transferee or any person claiming under him from parting with or disposing of his interest in the property, the condition or limitation is void, except in the case of a lease where the condition is for the benefit of the lessor or those claiming under him:
PROVIDED that property may be transferred to or for the benefit of a women (not being a Hindu, Muhammadan or Buddhist), so that she shall not have power during her marriage to transfer or charge the same or her beneficial interest therein.