held prisoner vs locked up

held prisoner

locked up

How often have the words held prisoner and locked up occurred in a corpus of books? (source: Google Ngram Viewer )