core: Add guards for public API

Add guards for all the grl_data_* public API functions.

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