The union for Northern Territory prison guards has flagged it will go to the Fair Work Commission to stop inmates being shifted to relieve overcrowding.