Add overlap handling to redirect_fds(). am: c718268549 am: b4848039ee

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

Change-Id: Iae800936bbfa519aa243da17bbe403ca3a628938