platedetector: Protect critical region

Change-Id: I5ab49cdaa5b5b242e45b62875b669cd4091da99c