When rescan the library only get a list of all track scanned in a thread. Olny when finish it update the database in the main thread.
TODO: The update procress can be more complicated..