llsec: Adapted APKES to avoid nonce reuse in case of node resets