Fixed some broken mutex locking in FreezableVariableContainer