A Spin System Model for Coupled-Cavity Masers