If the coup was staged, this is one way to make it look like the US was involved.
We have no control over what Turkish forces do at their base.
If the Turks there are coup supporters of course Erd could cause trouble by not allowing us to withdraw before he attacked.
But I doubt he, or his paymasters, want that kind of trouble.