db: Return stale default repos and update in background
Created by: ryanslade
Currently any request that fetches default repos that are stale will trigger an update. This change instead triggers the update in the background and returns the stale repos immediatley. It also ensures that only one routine per instance will perform the update.