Or a contraction of "Gazebo"
Possibly from an African language (Zulu or Swahili are often cited) word "M'khazi" meaning a latrine.
Alternative forms 
khazi (plural khazis)
Usage notes 
Particularly used in "down the khazi".
Khazi is now most commonly used in Liverpool, away from its cockney slang roots.