Make shadow copies work with recursive snapshots.
http://support.freenas.org/ticket/2521

(cherry picked from commit 4e0913363e512578be18c3a57c6dd644284f2249)