locate service: allow customisation

Fixes #2961

It'd be great if someone could spend 2 mins eyeing this for any obvious mistakes.

I note that `nixos-option` does not show updated values, I don't know what the deal with that is.
This creates the directory so /var/cache so that updatedb can later make the /var/cache/locatedb file.