public/* protected */boolean lockObject(Object obj) {
		if (useSerializableTransactions) {
			ThreadTransactionContext ctx = getTransactionContext();

			if (ctx.nested != 0) { // serializable transaction
				return ctx.locked.put(obj, obj) == null;
			}
		}

		return true;
	}