legacy: use k_cycle_get_32 instead of legacy sys_cycle_get_32

Jira: ZEP-1585
Change-Id: Idac4685625f191771b90ce78234d97f5143413f0
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
9 files changed