Move k_thread_foreach() API test from tests/kernel/profiling to tests/kernel/threads/thread_apis. Fixes #7966 Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com>