Avoid calling rpl_lock_parent for uninitialized memory. Renamed p to parent to make reading easier.