motion: check console task when available
motion: check console task when available

motion_sense_init() checks if it was called in hooks task or console task
context. In Zephyr console task is not available so TASK_ID_CONSOLE is
not defined. Because of that HAS_TASK_CONSOLE is used to choose if check
for hooks and console task or only for hooks task.

BUG=none
TEST=makeall
BRANCH=none

Signed-off-by: Tomasz Michalec <a547db31280d14f095c760a23a7523d0b1e55fe6@semihalf.com>
Change-Id: Ie51b043209d5228c074bbc9a693bf7b98cf2a598
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2933302
Reviewed-by: Keith Short <f6d578f97033c25f1206cb57d52f358974c82954@chromium.org>

coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec