Avoid unsigned overflow wrapping PYTHON-571