Implemented lstat(2) in Java as same as stat(2).