gras: removed deprecated lock/unlock calls