JCR-3879 Remove contention in AsyncUploadCache to improve performance fixed. Reversed the if condition block to reduce the dependency of synchronized access to asycuploadCache.