Ensures that all callers and the garbage collector are using the same lock instances to prevent cleanup of objects during creation. Signed-off-by: Derek McGowan <derek@mcgstyle.net>