[JBJCA-1147] Modify permits under lock