Move APF memory clear into its own function

Every test that uses counters should make use of this function.

Test: TH
Change-Id: I0b7e9597df889365dce98f45c7107dbf27457c4f
1 file changed