use `string.len` instead of `#` on async trace test

Fixes the failling `lua5.1` and `luajit` tests