Dynamical transition in the TASEP with Langmuir kinetics: mean-field theory