Fix RT #81561

10-client.t randomly failed on perl-5.17-6 and higher. This commit fixes it and also prevents warnings about unescaped curly brace at 10-client.t:147.