Use double checked locking to remove sync block