Add a define to invalid connection ID

The stack handles pending connection as ID 0, so it's better that we
change our connection ID to -1.