fix FC in Android 2.3 when calling util.realpath

the bionic implementation of realpath in Android 2.3 will
directly copy to resolved ptr without checking the nullity