test: nginx: Adds timeout while listening for a socket.