ssh-agent-filter-replace: repeated execution modifies filter

with these modifications, it is possible to repeatedly run
ssh-agent-filter-replace and have the filter replaced or removed, and it
will play together nicely with others who implement a reasonable
protocol.