Nit: Add a comment to say it's protected  by 'lock'