We don't get our ships repaired and serviced in Qatar. We do get them repaired and serviced in the UAE. Incidentally, if we need the same level of work we can and do get in the UAE, would you care to guess where the ships would need to go?
Unless they closed it down also we had a yard in the PI's. There is also Perth which is roughly 6 days out. Have you ever been onboard a Navy ship when it's in the yards? If you have I think you could understand why using UAE is not such a good idea and neither is mooring deep draft ships at piers there.
But why not simply do the routine maintenance state side where security is not an issue? That yard isn't being used for emergency only it's doing routine work.
A brief history it was established with Newport News Shipbuilding being a share holder of about 30% the rest is owned by the UAE government. NNSBDD sold back their interest to UAE. IOW no USA vested interest in it's operations.
How about Iran? Seriously. Now, consider which steps would be needed to be able to do that. THIS is how a real great power thinks.