It is debatable but it can work as you are operating and claiming exemption in the same fashion as in a JDA contract but I would suggest you to add your mother as a co owner after you demolish the first property and start to construct the new property or sell your property to your mother at the rate where you don't attract capital gain and let her construct new property.
Hope you find the information helpful if you do please rate it 5 and provide your valuable feedback for my improvement.
Thank you