Homegrown all-rounder Lyndon James finished on 92 not out after leading a Nottinghamshire recovery from 50 for six against Hampshire.