Ensure finalisers are run in main thread with Safe_finaliser.
Use Lwt_gc.finalise (safe as of Lwt 2.4.3).
Bump version to 0.5.2, rebuild setup.ml.