The temporary closure of Edinburgh’s Eye Pavilion for urgent repairs and the resulting relocation of clinics and surgery to other sites will cost nearly £4 million.