Removed a race condition, while accessing common data via download thread

Minor race condition avoided