prettier double-checked locking (?)