Share a common wallet.dat file between two servers Note this is not duplicate of Is there a way to change the wallet.dat location without changing the entire data directory? 

I want to change wallet.dat file location. From the above link it seems to be impossible. But is there any way i can update wallet file location in bitcoin source code https://github.com/bitcoin/bitcoin and run make command to make it executable. Here is the reason why i want to do this:
https://serverfault.com/questions/888293/share-a-file-between-aws-servers

I want to share a common wallet.dat file between two server.
Just wait for the next Bitcoin Core release. They've already implemented -walletdir: https://github.com/bitcoin/bitcoin/commit/0530ba0eae147563921b162ed05347234d8b53c0

https://github.com/bitcoin/bitcoin/pull/11466