Make deepcopy_internal
infer for locks and conditions
#54506
Merged
deepcopy_internal
infer for locks and conditions
#54506