I've only noticed this behavior with geotherms and offworlds but it may effect all buildings. Not sure. When someone targets your geotherm with dynamite for example, 120 steel is subtracted from your stockpile instantly. Then when you actually want to click the repair button you'll still have to expend resources to repair. Also if you've mutinied a geotherm and someone dynamites it the steel will be subtracted from your stockpiles rather than the original owner.
I've got a replay with an approximate time, not sure if there's a way to attach it here. Day 5, 12:40.
In that same replay I also noticed that when someone buys out someone with a stock price <1.00$ you get 0$ back. I had 4-5 shares in the company and when someone else bought him out I received nothing. Not sure if thats a bug or by design though. Day 4, 9-10.