tbm_backend: fix the handle casting.