etnaviv: Resource sharing fixes
This fixes race conditions in etnaviv drm and gallium driver when sharing resources between two contexts from different threads. Often, these races corrupt the drm BO cache, so add valgrind support to make it easier to spot those.