fix: [JS] Correctly handle event locks
fix: [JS] Correctly handle event locks

SteveClement/MISP,MISP/MISP,SteveClement/MISP,SteveClement/MISP,MISP/MISP,FIRSTdotorg/MISP,MISP/MISP,SteveClement/MISP,SteveClement/MISP,FIRSTdotorg/MISP,MISP/MISP,FIRSTdotorg/MISP,MISP/MISP,FIRSTdotorg/MISP