Add lock to get_sensed_item.
Cleanup of return values and init in actuator handler.