tftpd.c: Follow up cleanup and restore of previous sockopt