Do not add a const qualifier for the p_parent since mutexes operations are not const. Forgot to invert one call in input_item_Copy.