net: Surround state->node_entry changes by state_lock

Otherwise it leads to segfaults.
Merge pull request #520 from euroelessar/master

net: Surround state->node_entry changes by state_lock