livestatus: hoststable: lock service object for  acknowledgement getters

refs #4372
livestatus: hosttable: check if custom dictionary exists

refs #4372
livestatus: hosttable: fix checkperiod null ptr

refs #4372
Merge remote-tracking branch 'icinga2/master'