server: enforce prompt cache RAM limit (#25070)