Fixes race in decref