Just for clarification: Preventing Privateers from calling up a DoW when entering foreign waters, when their move starts in a city, is part of a difficult issue with privateers and cities in general.
Circumventing the problem in-game however is easy: Just move your privateer out of the city before you move it into foreign waters (without an OB treaty).