fix incorrect double checked locking in future