First of all, he should exchange his land with the custodian land and should take it into his possession. After the paper works are furnished and he become the owner of the custodian land in government record, the land may be registered in the name of the mosque. Then it will be alright if the mosque is constructed on that land.
Allah knows Best!
Darul Uloom Deoband