A prison worker who had an illicit affair with the man who murdered law graduate Zara Aleena has been jailed for nine months.