NSW prisons to resume in-person visits