Race condition fixed accessing stats

Signed-off-by: Luis Pabón <lpabon@redhat.com>