Move the bulk of the logic for handleReleaseMsg into its own function.
Move the bulk of the logic for handleReleaseMsg into its own function.

We'll want to use this in a couple other places, e.g. when dealing with
messages that have releaseParamCaps = True.

zenhack/haskell-capnp