[musicdb] fix: avoid crash on exit in curl rate-limiter due to iterator invalidation