David Gilbert ended the second session of his World Snooker Championship semi-final against Kyren Wilson with a century.