libmodbus 3.1.1

Closes #23875.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>