bug fix if lock not set in JRIverDB