A man who was released from prison where he was serving a life sentence for double murder has been convicted for the killing of his neighbour in Wales.