I have never had the hatch or doors inadvertently lock on any of my LEAF's. Make sure you are not inadvertently pressing the lock button on the key fob.
Gerry
Silver LEAF 2011 SL rear ended (totaled) by in-attentive driver 1/4/2015 at 50,422 miles
Silver LEAF 2015 SL purchased 2/7/2015; traded 8/10/2019 at 82,436 miles
White LEAF 2019 SL Plus purchased 8/10/2019