Sorry, a little late to the discussion! But I have not so much a fix, more of an unethical but effective-ish way to get around the docking port not undocking.
Destroy it! Specifically, use the object launcher to throw a very light (1.0 mass), very small (0.1 size), but very fast (70 speed) cube right at either of the two docking ports you want undocked. Obviously, this destroys the port, but it does keep every single other part around it intact as long as you aim correctly. If you no longer need the docking port, then problem solved. If, however, you still need to use the port for another docking, a crewed vessel can use an engineer and bring whichever docking port you need in the crew module's storage (the clamp o tron senior might not fit? I haven't checked) and simply attach another docking port.
Anyway, the work around is about as brute force as you can get, but I just got it to work a couple times with some simple space shuttle-style missions that only needed one or two dockings. Hope this helps somebody 7 years later lmao.