nmod_mat_det_mod_pk() seems to work