[sr-dev] git:sr_3.0: presence(k): fix off-by-one memory allocation