I have often experienced this as well. The flipped faction's ships seeem to forget they belong to the faction which owns them, they remain docked at the planet, and will not allow one's own ships to dock.
Perhaps this was thought of as a "feature" at one point, but it looks like a bug.