Use lock when making changes to stats