MediaLibrary: Enforce single instance

Use a filelock ml.lock in the medialib folder path to guarantee that
only one instance of the medialib can be running for this database.
3 jobs for !366 with single_instance in 5 minutes and 10 seconds (queued for 1 second)
merge request