It was no small irony that the negotiations over the constitution , which is intended to hold this fractious country together , took place inside the Baghdad compound of Mr. Barzani , who has spent much of his adult life trying to keep the rest of Iraq at bay .