bugfix: remember to retry flock() if interrupted by signal
bugfix: remember to retry flock() if interrupted by signal

realm/realm-core,realm/realm-core,realm/realm-core,realm/realm-core,realm/realm-core,realm/realm-core,realm/realm-core