BS-9567 : change the way we test the lock to be acquired to be able to wait longer
Merge branch '6.3.x' of github.com:bonitasoft/bonita-engine into 6.3.x