From what I understand, Trump wants to use Gitmo as a temporary holding camp for undocumented immigrants slated for deportation. If he tried to turn it into a prison it wouldn't really matter because that base is under US jurisdiction so it would be just like any other federal prison. Housing inmates there doesn't present the same problems and conflicts as housing them in a foreign country.