The lock wrappers a pair of variables that are used in a calculation in the report. It is very inexpensive since it rarely blocks.  The main reason it is there is to quiet the race warning message.