Added missing lock around cnxnPartition