[TF-M] Reducing the stack usage of the dummy NV counters implementation