You have absolutely no idea what you’re talking about. A lawsuit doesn’t prevent a declaratory judgment.
Great, if you're right, then there is nothing preventing Cruz from getting one and clearing up the questions about his eligibility.
My understanding is that Cruz can still plead for a declaratory judgement but with a lawsuit pending on that very matter, the court will almost certainly refuse to issue one pending the outcome of the lawsuit.