src/gradOpt.c: bugfix no loop blocking de lambda.

Signed-off-by: Kevin Katzer <kk11@inf.ufpr.br>