Use this to give the fort to another faction? Unfortunately not.
The only thing I can think of is to move out of the fort, move an enemy-of-Dwarves-and-you next to it (move_character console command) and hope that they take it and the Dwarves then take it from them.