Mutex locking for refresh handling