Fix incorrect usage of _fgetattrs

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>