pool: Expose error code to migration task callback

Not used by migration module, but other users may want to know the error
code.

Target: trunk
Require-notes: no
Require-book: no
Acked-by: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>
Patch: https://rb.dcache.org/r/7534/