An even simpler solution...
Keeping the seacock permanently closed is ok if you have a manual toilet, but a bad idea if you have an electric toilet because flushing the toilet dry destroys the intake impeller and eventually the whole intake pump assembly. Just pouring water down the toilet to rinse the sea water out only rinses out the head discharge line...it won't flush the sea water out of the intake because nothing that goes into the bowl is recirculated through the intake....if it did, waste would also be recirculated. The simplest solution for both manual and electric toilets: Tee the head sink drain line into the head intake line. Before the boat is to sit, after you've closed all the seacocks, fill the sink with clean fresh water...flush the toilet. Because the seacock is closed the toilet will pull the water out of the sink, rinsing the sea water out of the whole system--intake line, pump, channel in the rim of the bowl, AND the discharge line. This would even allow you to keep the intake seacock closed all the time...just fill the sink to flush each time instead of using the shower head or a jug of water.As for using vinegar and baking soda to clean out a line...be careful! It's not a toxic combination...but vinegar and baking soda mixed together can create enough effervescent pressure to blow off a hose connection or damage the parts in a pump.