Avoid the use of "register" keyword in XkbTranslateKeySym.

coypoop requested to merge coypoop/libx11:register1 into master

This causes issues when compiling code for C++17. While here, make function prototype match the header with regards to removal of another register keyword.

Let me know if you are interested in the removal of additional "register" keywords from public headers.

Merge request reports