Frequency-domain algorithm for the Lorenz-gauge gravitational self-force | Synapse