[JBRULES-3274] allow to upgrade a read lock to a write one