Fixing 2d sprites/texture manager interaction deadlocks