you won't accidentally delete any nodes because Maya doesn't have any locked nodes (it has many READ ONLY nodes, but these are different. i.e. if you lockNode -q lambert1
it returns 0)
so, to unlock EVERYTHING just do a single loop:
CODE
for ($obj in ls
) lockNode -l 0 $obj;
but I would seriously not recommend this all the same... maybe a selection version would be safer:
CODE
for ($obj in ls -sl
) lockNode -l 0 $obj;
this could do with a lot of extra work and protection but what am I? your mother? 
:nathaN