JS-238 adding double checked locking