Text this: When Semantic Communication Meets Queueing: Cross-Layer Latency and Task Fidelity Optimization