Copy ownership of the shadow cache, just as permission bits are.  Patch from javi@trackuino.org.

Fixes issue #36.