apt_repository: fix update cache after state=changed. Closes GH-4136