A nationalist woman has lost her legal challenge to the flying of the Union flag at courthouses in Northern Ireland.