Woman accused of locking child in closet appears in court