Lawmakers in the Solomon Islands have selected a pro-China candidate as their prime minister, in an indication the Pacific nation will remain a close Beijing ally.