This is how I do it :
SuperCruise : I have a button for "Target next Hostile". Unless you're interdicted (Button will instantly target your Interdictor for instant info), this will deselect any Ship you're locked onto, giving you Info i.e. on your Destination Station again
Normal Space : I use a button for "Target ahead". If pointing at a locked Target, clicking it will deselect it (provided there's no other Ship near it). Clicking again while still pointing will re-target that Ship.
(caviat : if targeting into a "furball" of many Ships, repeatedly clicking it will effectively cycle through all Targets within the few degrees the Target Ahead function will work; if it's a single Hostile amongst non-hostile Ships, "Target next Hostile" will instantly lock onto your single Hostile Target again)
Most of the time, above works like a charm for me (unlock in SuperCruise or de-select a chaffing Hostile for my Gimbal Weapons ; or make Turrets momentarily cease fire vs. Chaffing Target)