It is not possible to identify any overt antecedent at syntax.
in our semantic/pragmatic-based system, the negative particle can mean that the speaker does affirm the negative value of the proposition such that the child touches the socket.