fix: avoid int overflow in rlimit.c
(cherry picked from commit 6ace3051babf6d4083ff3aabc1f7e6885356e220)

Signed-off-by: Andreas Steenpass <steenpass@mathematik.uni-kl.de>