ngx.shared: improved the error handling in incr() a bit.