test_nss_srv: Use right function for storing time_t
The size of time_t can be 8 bytes on some platforms.
It is because of year 2038 problem.
Reviewed-by: Pavel Březina <pbrezina@redhat.com>
(cherry picked from commit 390de028b3130ae564059101c662fe74e0e85a45)