Resolve `warning: no previous prototype for ‘gpencil_layer_new_name_get’` by marking it as `static`. No functional changes.