1094456: cap the number of pinsetter job refires

Added pinsetter.retries.max property to configure the maximum
number of retries for jobs that throw persistence exceptions.

Negative values represent unlimited