ose: Remove usage of aio in to_erl code