net: sctp: fix NULL pointer dereference in socket destruction