They can detect third party clients. So, using the official Runescape client you won't get locked. Also, using OSBuddy and RuneLite won't get you locked either because they know that those are the most used third party clients and they give them a pass. However, the other third party clients like OSBot and others are either not recognized therefore you get locked or they are recognized as botting clients and therefore the same conclusion.