Do not crash if script locks were not initialized ( eg - OpenSIPS failed to start )
(cherry picked from commit b7bd5b5df9dd61d734cb2ec14fb4b8d970df9628)