adb: set O_CLOEXEC on lots of file descriptors

Too many leaking FDs.

Fixes bug: https://code.google.com/p/android/issues/detail?id=65857
(and more)

(cherrypicked from commit fe8d7f4f2e775d46d61f7c2d29a4e852434984da)

Change-Id: I67d8683244e54288a8105f6f65ee40abe2378d7e
5 files changed