properly support trlStatic inside trlStatic, backed now by tests
fix metadata with apc backend: only calculate expire if lifetime is set