Probing ultralight axions with the 21-cm signal during cosmic dawn