netcat6: remove popen, use assert_equal, add assertion for exitstatus

Closes #29580.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>