session: write chunk has to copy its key since it will be freed after channel has been returned