fd: add fget_only_user
This can be used by single-threaded processes which don't share a file
descriptor table to access their file objects without having to
reference them.
For example select consumers tend to match the requirement and have
several file descriptors to inspect.
(cherry picked from commit eaad8d1303da500ed691bd774742a4555a05e729)