fix: initialize lock to empty dict