Critical current and flux dynamics in Ag-doped FeSe superconductor