Don't log recursive calls: squash them into 1 entry

Signed-off-by: Jeremy C. Andrus <jeremya@cs.columbia.edu>
Expose stat and dirfd in libc interface

Signed-off-by: Jeremy C. Andrus <jeremya@cs.columbia.edu>
More complete handling of fd types in logs

This patch should dynamically discover the type of file descriptor even if it
was passed through binder.

Signed-off-by: Jeremy C. Andrus <jeremya@cs.columbia.edu>