provisional lock implementation for synchronized thread starting