This class does not perform any pessimistic transactional locking. Only locking
on single-threaded non-reentrant beans.
Holds all locks for entity beans, not used for stateful.
All BeanLocks have a reference count.
When the reference count goes to 0, the lock is released from the
id -> lock mapping.
public void schedule(MethodInvocation mi)
throws java.lang.Exception
Schedule(MethodInvocation)
Schedule implements a particular policy for scheduling the threads coming in.
There is always the spec required "serialization" but we can add custom scheduling in here
Synchronizing on lock: a failure to get scheduled must result in a wait() call and a
release of the lock. Schedulation must return with lock.