In the Masters pane in the left sidebar, right-click on the master you would like to rename and click Rename in the context menu. This will open a Name Dialog for you to name the master. After entering a name and clicking OK, the master will be renamed.
You can also perform a slow double-click on the master. This will allow you to change the name inline.