Retry the restart of nscd up to 3 times

nscd tends to crash, fail to restart... and all this is random.  We try three times before giving up.

Fixes #175.