tests: Fix memory leaks.
tests: Try to fix torture_forward.
channels: Add a ssh_channel_read_timeout function.