fix two issues in code to register absences to a service from admin badgeuse :…

fix two issues in code to register absences to a service from admin badgeuse : missing self. + handle exception (cannot marshal thread lock)
Status Job ID Name Coverage
  Test
canceled #8381
lint:js

canceled #8382
unit:django