Redis input: fix blocking operation hanging pipeline shutdown (fixes #1779)