I don't believe you will be able to at 3.1. The LocateButton class was not added until version 3.7. See the following link:https://developers.arcgis.com/javascript/jsapi/locatebutton-amd.html