Added locking of expenses when the state of the report changes