'Close country' gaffe leaves Thai junta scrambling