monitoring: fix check-ucarp-procs

while read creates a subshell, so the exit status was not being populated up