Remove usages of core_platform_current

core_platform_current was only used in
a couple of places so it can be replaced with
an alternative.

Bug: 117936519
Test: build
Change-Id: Ia438e42f9d9d805073fecc4ffaaf982f832f9046
2 files changed