Remove some locks

There aren't two tasks which access the shared variables for writing so it that's why we don't need the locks