fixup! taskdistribution: really fix lock to avoid errors with concurrent RPC calls