limiting failed logins to three

I have tried limiting failed logins to three by the following method

logins -ox \ | awk -F: '($8 != "LK" && $1 != "root") { print $1 }' \ | while read logname; do
/usr/lbin/modprpw -m umaxlntr=3 "$logname"
done
/usr/lbin/modprdef -m umaxlntr=3

but it is failing on the 4th... any ideas? this is on a trusted hpuxi 11.11 machine

no one has ran into this issue before?