Man accused of locking woman, child in trunk of car