Exact stationary solution of a Fokker-Planck equation for multimode laser action including phase locking