Hello,
To summarize my current workflow, I use tkinter in Python 3.x (Esri's release that accompanies each Pro update) to execute some Esri geoprocessing functions for exporting SDE data (Create local File GDB, export feature classes from the SDE into the File GDB, run some field calculations, zip up the File GDB, etc.).
This workflow has been working just fine for me these past few minor releases of Pro. However, with the recent upgrade to Pro 2.6, I'm running into errors related to arcpy's CreateFileGDB_management().
When I create a file geodatabase through arcpy, it's leaving a "_gdb" sr.lock in place even after the file geodatabase has been created. All other functions that occur after this step (export feature classes, field calculations, etc.) properly release their locks upon completion. However, this one lock gets stuck for some reason during the File GDB creation step.

This has caused some of my applications to have problems with regard to zipping and migrating data due to the lock persisting.
After some experimentation, I can get the sr.lock to release by executing the arcpy.ClearWorkspaceCache_management() option. However, I've never needed to use this previously when creating local File GDBs.
Is this sr.lock working as intended, or could there have been a bug introduced in Pro 2.6? Again, this has not been an issue for my tools in Pro 2.x prior to 2.6, so I'm curious if anyone is encountering this issue now as well. Thanks for your assistance!
Here's my code for this particular function, and this is where I've isolated the sr.lock hanging:
<SPAN class="keyword token">def</SPAN> <SPAN class="token function">func_Create_GDB</SPAN><SPAN class="punctuation token">(</SPAN>self<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">:</SPAN>
<SPAN class="comment token"># This function creates an empty File GDB that will be used to house the exported Regional SDE feature classes.</SPAN>
<SPAN class="keyword token">try</SPAN><SPAN class="punctuation token">:</SPAN>
<SPAN class="comment token"># This string creates a naming convention for the new QC Prepped GDB.</SPAN>
self<SPAN class="punctuation token">.</SPAN>gdb_name_prepped <SPAN class="operator token">=</SPAN> stat_val<SPAN class="punctuation token">.</SPAN>gdb_name_prepped <SPAN class="operator token">+</SPAN> <SPAN class="string token">"_"</SPAN> <SPAN class="operator token">+</SPAN> self<SPAN class="punctuation token">.</SPAN>input_zip_file_name_date_only
<SPAN class="comment token"># Display message within scrolled text box.</SPAN>
self<SPAN class="punctuation token">.</SPAN>func_Scroll_SetOutputText<SPAN class="punctuation token">(</SPAN><SPAN class="string token">"Creating File GDB:\n"</SPAN> <SPAN class="operator token">+</SPAN>
self<SPAN class="punctuation token">.</SPAN>gdb_name_prepped <SPAN class="operator token">+</SPAN> stat_val<SPAN class="punctuation token">.</SPAN>string_gdb <SPAN class="operator token">+</SPAN> <SPAN class="string token">"\n"</SPAN> <SPAN class="operator token">+</SPAN>
<SPAN class="string token">"Saving to:\n"</SPAN> <SPAN class="operator token">+</SPAN>
self<SPAN class="punctuation token">.</SPAN>output_folder <SPAN class="operator token">+</SPAN> self<SPAN class="punctuation token">.</SPAN>input_zip_file_name_date_only<SPAN class="punctuation token">,</SPAN> None<SPAN class="punctuation token">)</SPAN>
<SPAN class="comment token"># Creates the File GDB with the new GDB naming convention.</SPAN>
arcpy<SPAN class="punctuation token">.</SPAN>CreateFileGDB_management<SPAN class="punctuation token">(</SPAN>self<SPAN class="punctuation token">.</SPAN>output_folder <SPAN class="operator token">+</SPAN> self<SPAN class="punctuation token">.</SPAN>input_zip_file_name_date_only<SPAN class="punctuation token">,</SPAN>
self<SPAN class="punctuation token">.</SPAN>gdb_name_prepped<SPAN class="punctuation token">)</SPAN>
<SPAN class="comment token"># Display all geoprocessing messages within scrolled text box with blue text.</SPAN>
self<SPAN class="punctuation token">.</SPAN>func_Scroll_SetOutputText<SPAN class="punctuation token">(</SPAN>arcpy<SPAN class="punctuation token">.</SPAN>GetMessages<SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">,</SPAN> stat_val<SPAN class="punctuation token">.</SPAN>color_Blue<SPAN class="punctuation token">)</SPAN>
<SPAN class="comment token"># Increment progress bar by 2 percent.</SPAN>
self<SPAN class="punctuation token">.</SPAN>percent_value <SPAN class="operator token">=</SPAN> self<SPAN class="punctuation token">.</SPAN>percent_value <SPAN class="operator token">+</SPAN> <SPAN class="number token">2</SPAN>
self<SPAN class="punctuation token">.</SPAN>func_ProgressBar_SetProgress<SPAN class="punctuation token">(</SPAN>self<SPAN class="punctuation token">.</SPAN>percent_value<SPAN class="punctuation token">)</SPAN>
<SPAN class="comment token"># Once task has completed, display message within scrolled text box.</SPAN>
self<SPAN class="punctuation token">.</SPAN>func_Scroll_SetOutputText<SPAN class="punctuation token">(</SPAN><SPAN class="string token">"Output GDB created!"</SPAN><SPAN class="punctuation token">,</SPAN> None<SPAN class="punctuation token">)</SPAN>
<SPAN class="comment token"># Change function check message from Failure to Success.</SPAN>
self<SPAN class="punctuation token">.</SPAN>check_func_Create_GDB <SPAN class="operator token">=</SPAN> stat_val<SPAN class="punctuation token">.</SPAN>message_Success
<SPAN class="keyword token">except</SPAN> arcpy<SPAN class="punctuation token">.</SPAN>ExecuteError<SPAN class="punctuation token">:</SPAN>
<SPAN class="comment token"># Display message within scrolled text box.</SPAN>
self<SPAN class="punctuation token">.</SPAN>func_Scroll_SetOutputText<SPAN class="punctuation token">(</SPAN>arcpy<SPAN class="punctuation token">.</SPAN>GetMessages<SPAN class="punctuation token">(</SPAN><SPAN class="number token">2</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">,</SPAN> stat_val<SPAN class="punctuation token">.</SPAN>color_Red<SPAN class="punctuation token">)</SPAN>
<SPAN class="comment token"># Set progress bar to 100 percent.</SPAN>
self<SPAN class="punctuation token">.</SPAN>func_ProgressBar_SetProgress<SPAN class="punctuation token">(</SPAN><SPAN class="number token">100</SPAN><SPAN class="punctuation token">)</SPAN>
<SPAN class="comment token"># Set completion boolean to False if failure occurs.</SPAN>
self<SPAN class="punctuation token">.</SPAN>check_complete <SPAN class="operator token">=</SPAN> <SPAN class="token boolean">False</SPAN>
<SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>