r300: fix bo ref/unref, plugs DRI handle leaks