Clean up the API for setUpperCaseLock