Make flock warning registration backwards compatible

warnings::register_category was introduced in v5.14. This fakes it with
a package statement and "use warnings::register".