Queensland needs more prisons to improve safety: union