s3:lib: use stack buffers in drain_socket() and default_sys_recvfile()