sensors: lis2dh: Handle return value of `lis2dh_reg_read_byte` function
sensors: lis2dh: Handle return value of `lis2dh_reg_read_byte` function

Provide necessary error handling for `lis2dh_reg_read_byte` function
which might fail.

Also, use a common `status` variable to be used for storing the
error code.

Fixes #10590
Coverity-CID: 188733

Signed-off-by: Himanshu Jha <db39123178a3996d9dafcdcc9af59c3e841de70a@gmail.com>

GiulianoFranchetto/zephyr,nashif/zephyr,nashif/zephyr,punitvara/zephyr,punitvara/zephyr,galak/zephyr,explora26/zephyr,nashif/zephyr,ldts/zephyr,Vudentz/zephyr,ldts/zephyr,nashif/zephyr,finikorg/zephyr,GiulianoFranchetto/zephyr,Vudentz/zephyr,finikorg/zephyr,finikorg/zephyr,ldts/zephyr,zephyrproject-rtos/zephyr,galak/zephyr,nashif/zephyr,zephyrproject-rtos/zephyr,explora26/zephyr,galak/zephyr,explora26/zephyr,GiulianoFranchetto/zephyr,GiulianoFranchetto/zephyr,Vudentz/zephyr,zephyrproject-rtos/zephyr,explora26/zephyr,finikorg/zephyr,explora26/zephyr,galak/zephyr,GiulianoFranchetto/zephyr,zephyrproject-rtos/zephyr,zephyrproject-rtos/zephyr,Vudentz/zephyr,Vudentz/zephyr,galak/zephyr,finikorg/zephyr,Vudentz/zephyr,punitvara/zephyr,punitvara/zephyr,ldts/zephyr,punitvara/zephyr,ldts/zephyr