Do not build register_ck_session() function if CK is disabled

https://bugzilla.gnome.org/show_bug.cgi?id=730558