added check for EINTR and retry to unlock()
added check for EINTR and retry to unlock()

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