Detecting potential unsafe usage (object shared across multiple threads) on variables captured by Lambda