repo: Fix a few race conditions updating the status icon