Although \"shared energy\" is a wrong term, really. It is not really shared: The docked turret in question simply taps into the ship\'s power once its own runs out.
Therefore, once a ship/turret detaches, it takes nothing of the ship\'s energy with it anyway.
I hope that this was at least of some use to you, as I do not have an answer to your actual question.