Heat sink for transistor in TO18 package