[state] Put conditionally used code into #ifdef block
[state] Put conditionally used code into #ifdef block

Compiler warns about defining static function need_to_ise_reboot()
when compiling without DSME_SUPPORT_DIRECT_USER_ACTDEAD.

Include the function to compilation only when the configuration option
DSME_SUPPORT_DIRECT_USER_ACTDEAD is defined.

Signed-off-by: Simo Piiroinen <6d5e5360bed3d486f7d9fb26b0f737f7d4fd45ee@jollamobile.com>

spiiroin/dsme,spiiroin/dsme