Spectral Control of a Cavity-Based X-ray Free-Electron Laser via Active Mode Locking | Synapse