Update FreqTable.py

Added mutex to avoid race-condition