Fixes int overflow in lockprov.sh