Add overlap handling to redirect_fds(). am: c718268549

Original change: https://android-review.googlesource.com/c/platform/external/minijail/+/1675393

Change-Id: I2c3896fdf089e94f409955add1f2509e632328ff