Locking Multiple Objects Atomically