add plumbing for set_update_fetchhead() and update_fetchhead() on remotes

Using `cbool(val)` directly in the function call would let us get rid of the boilerplate bool conversion.