This should help prevent race-conditions with a context being destroyed between breing retrieved and locked