ahci: factor ncq_finish out of ncq_cb