Fix powa_take_statements_snapshot() to avoid wrong results