Fix build

Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
Remove deprecated tp_handle_ref/unref

Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>