add test_linger

tests that default LINGER (-1) ensures message delivery.

Note: it fails for large messages ( > 1MB, depending on the system).
cast rc to size_t for comparisons

avoids -Wall failures comparing int to uint
Merge pull request #639 from minrk/test_linger

add test_linger