do not use coap_get_mid.

See original pull request here: https://github.com/01org/liblwm2m/pull/33