[cleanup] Use const in smux interface

smux_trap and oid_copy should allow read-only source.
2 files changed