NULL checks on local->loc.parent
NULL checks on local->loc.parent

check for presence of local->loc.parent != NULL before defering to
pick ino for post/preparent parameters. local->loc.parent can be NULL
legally when loc is describing "/"

Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 315 (generation number support)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=315

Kaushikbv/Gluster,Kaushikbv/Gluster,Kaushikbv/Gluster