LifelongAgentBench: Evaluating LLM Agents as Lifelong Learners