remove legacy
rtx: thread-safe malloc/free