pointerdetector2: Protect critical section

Change-Id: I0a5e5c6840ba49e2fbceddb8807eab93794baf2b