Fixed tree_lock method to make left side div and tree dim when in edit.

This broke with dynatree conversion.

@dclarizio please review/test.