erts: Add tests for sendfile passive mode bug