gargoyle: session_validator: More simplification of the code.

This further reduces the memory consumption of variables on the stack and
also reduces by two the number of calls to `sprintf`.

Signed-off-by: Rogério Brito <rbrito@ime.usp.br>