parlib: Use 'const' in the set_dtls() interface