Fixing bug with keep-alive with gtls.

Self-explanatory -fixing to cast nsd_gtls_t structure per the gtls method.