We are in the process of 'converting' to AJAX and have experienced similar problems.
As AJAX does not support a number of macros we are now using triggers as much as possible. Those tasks you have described - selecting, clearing, locking and unlocking - can easily be done by adding actions to the On ActivateSheet or OnLeaveSheet triggers in Sheet properties.
To set actions of deselecting or selecting =’’ (empty string) that will be view in AJAX, it´s necessary to set those actions in AJAX view.
I have tried in a server and it works fine.
Other actions like go to sheet work fine any view.
Actions like selecting nothing and other are incompatible from one view to another. Setting both will not work properly.
So, it becomes some painful since we develop in local but those actions set in Ajax just don´t work.
The best strategy is to leave those actions for the end of your developing.