Add `retry` attribute to cache purging code.

There is an annoying problem with `nscd` daemon on Ubuntu systems that service startup script exits before the nscd daemon is actually available. As a consequence, `nscd -i TABLE` command fails if executed
immediately after service restart. Retrying it after a short timeout fixes the problem.