convert shadow variable locking to RCU